<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: lib/support/include/chi/Support/Result.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('Result_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Result.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="Result_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#ifndef CHI_RESULT_HPP</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define CHI_RESULT_HPP</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;chi/Support/json.hpp&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;boost/container/flat_map.hpp&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacechi.html">chi</a> {</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structchi_1_1Result.html">   72</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structchi_1_1Result.html">Result</a> {</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structchi_1_1Result_1_1ScopedContext.html">   74</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structchi_1_1Result_1_1ScopedContext.html">ScopedContext</a> {</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structchi_1_1Result_1_1ScopedContext.html#a15e5138daea652e91c8c91b0a80a9f60">   78</a></span>&#160;        <a class="code" href="structchi_1_1Result_1_1ScopedContext.html#a15e5138daea652e91c8c91b0a80a9f60">ScopedContext</a>(<a class="code" href="structchi_1_1Result.html">Result</a>&amp; res, <span class="keywordtype">int</span> ctxId) : <a class="code" href="structchi_1_1Result_1_1ScopedContext.html#a755e2e4acedc8c0be475c4678e3d4b52">result</a>{res}, <a class="code" href="structchi_1_1Result_1_1ScopedContext.html#ab5f480c619fad5ccaf21779c12136be7">contextId</a>{ctxId} {}</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structchi_1_1Result_1_1ScopedContext.html#a376eac6f57c30e55b9f9d7eb308232ba">   81</a></span>&#160;        <a class="code" href="structchi_1_1Result_1_1ScopedContext.html#a376eac6f57c30e55b9f9d7eb308232ba">~ScopedContext</a>() { <a class="code" href="structchi_1_1Result_1_1ScopedContext.html#a755e2e4acedc8c0be475c4678e3d4b52">result</a>.<a class="code" href="structchi_1_1Result.html#ab801a9230e3e46dc771f260992e4e84d">removeContext</a>(<a class="code" href="structchi_1_1Result_1_1ScopedContext.html#ab5f480c619fad5ccaf21779c12136be7">contextId</a>); }</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structchi_1_1Result_1_1ScopedContext.html#a755e2e4acedc8c0be475c4678e3d4b52">   84</a></span>&#160;        <a class="code" href="structchi_1_1Result.html">Result</a>&amp; <a class="code" href="structchi_1_1Result_1_1ScopedContext.html#a755e2e4acedc8c0be475c4678e3d4b52">result</a>;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structchi_1_1Result_1_1ScopedContext.html#ab5f480c619fad5ccaf21779c12136be7">   87</a></span>&#160;        <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structchi_1_1Result_1_1ScopedContext.html#ab5f480c619fad5ccaf21779c12136be7">contextId</a>;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    };</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structchi_1_1Result.html#aad77832631e03436010ecff5bb7ff597">   91</a></span>&#160;    <a class="code" href="structchi_1_1Result.html#aad77832631e03436010ecff5bb7ff597">Result</a>() : <a class="code" href="structchi_1_1Result.html#a22548cdff3037498a9cd978383458812">result_json</a>(nlohmann::json::array()) {}</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1Result.html#a59ef40f4a327cbdea263d6e4b5af2ad8">addEntry</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* ec, <span class="keyword">const</span> <span class="keywordtype">char</span>* overview, nlohmann::json data);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structchi_1_1Result.html#a5cbde12f0c21347635469c7acf8d4112">addContext</a>(<span class="keyword">const</span> nlohmann::json&amp; data);</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="structchi_1_1Result.html#a5cd21feaa68ac0d813b3eec7d3ea34c6">  123</a></span>&#160;    <a class="code" href="structchi_1_1Result_1_1ScopedContext.html">ScopedContext</a> <a class="code" href="structchi_1_1Result.html#a5cd21feaa68ac0d813b3eec7d3ea34c6">addScopedContext</a>(<span class="keyword">const</span> nlohmann::json&amp; data) {</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="structchi_1_1Result_1_1ScopedContext.html">ScopedContext</a>{*<span class="keyword">this</span>, <a class="code" href="structchi_1_1Result.html#a5cbde12f0c21347635469c7acf8d4112">addContext</a>(data)};</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    }</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1Result.html#ab801a9230e3e46dc771f260992e4e84d">removeContext</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    nlohmann::json <a class="code" href="structchi_1_1Result.html#aa078d3cb3dfb2fb63e81b71acea036e0">contextJson</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="structchi_1_1Result.html#a26406ce67145a4e7893018ccbf50dc89">  137</a></span>&#160;    <span class="keyword">explicit</span> <span class="keyword">operator</span> bool()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="structchi_1_1Result.html#a98065cddbdc75d3130b5d8c3d567f507">success</a>(); }</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="structchi_1_1Result.html#a98065cddbdc75d3130b5d8c3d567f507">  141</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1Result.html#a98065cddbdc75d3130b5d8c3d567f507">success</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="structchi_1_1Result.html#af020ebd48f50571295922b6235cf26bf">mSuccess</a>; }</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="structchi_1_1Result.html#ac4c9a2e6f79dbd1f49116370cfc96513">  145</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1Result.html#ac4c9a2e6f79dbd1f49116370cfc96513">operator!</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !<a class="code" href="structchi_1_1Result.html#a98065cddbdc75d3130b5d8c3d567f507">success</a>(); }</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    std::string <a class="code" href="structchi_1_1Result.html#a2e208b26f30dc292c5ab72354757b6dd">dump</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="structchi_1_1Result.html#a22548cdff3037498a9cd978383458812">  152</a></span>&#160;    nlohmann::json <a class="code" href="structchi_1_1Result.html#a22548cdff3037498a9cd978383458812">result_json</a>;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="structchi_1_1Result.html#af020ebd48f50571295922b6235cf26bf">  155</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1Result.html#af020ebd48f50571295922b6235cf26bf">mSuccess</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    boost::container::flat_map&lt;int, nlohmann::json&gt; mContexts;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;};</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1Result.html#a8fb4cc68d78f0a0068c0ddd282875eee">operator+</a>(<span class="keyword">const</span> <a class="code" href="structchi_1_1Result.html">Result</a>&amp; lhs, <span class="keyword">const</span> <a class="code" href="structchi_1_1Result.html">Result</a>&amp; rhs);</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<a class="code" href="structchi_1_1Result.html">Result</a>&amp; <a class="code" href="structchi_1_1Result.html#aa3dbb473ec8607456c13be950e739827">operator+=</a>(<a class="code" href="structchi_1_1Result.html">Result</a>&amp; lhs, <span class="keyword">const</span> <a class="code" href="structchi_1_1Result.html">Result</a>&amp; rhs);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="structchi_1_1Result.html#a3a1caa60d79ed3cd997da1559bddd278">  187</a></span>&#160;<span class="keyword">inline</span> std::ostream&amp; <a class="code" href="structchi_1_1Result.html#a3a1caa60d79ed3cd997da1559bddd278">operator&lt;&lt;</a>(std::ostream&amp; lhs, <span class="keyword">const</span> <a class="code" href="structchi_1_1Result.html">Result</a>&amp; rhs) {</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    lhs &lt;&lt; rhs.<a class="code" href="structchi_1_1Result.html#a2e208b26f30dc292c5ab72354757b6dd">dump</a>();</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <span class="keywordflow">return</span> lhs;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;}</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;}  <span class="comment">// namespace chi</span></div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="preprocessor">#endif  // CHI_RESULT_HPP</span></div><div class="ttc" id="structchi_1_1Result_html_a2e208b26f30dc292c5ab72354757b6dd"><div class="ttname"><a href="structchi_1_1Result.html#a2e208b26f30dc292c5ab72354757b6dd">chi::Result::dump</a></div><div class="ttdeci">std::string dump() const</div><div class="ttdoc">Dump to a pretty-printed error message. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8cpp_source.html#l00065">Result.cpp:65</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_a59ef40f4a327cbdea263d6e4b5af2ad8"><div class="ttname"><a href="structchi_1_1Result.html#a59ef40f4a327cbdea263d6e4b5af2ad8">chi::Result::addEntry</a></div><div class="ttdeci">void addEntry(const char *ec, const char *overview, nlohmann::json data)</div><div class="ttdoc">Add a entry to the result, either a warning or an error. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8cpp_source.html#l00052">Result.cpp:52</a></div></div>
<div class="ttc" id="structchi_1_1Result_1_1ScopedContext_html_a376eac6f57c30e55b9f9d7eb308232ba"><div class="ttname"><a href="structchi_1_1Result_1_1ScopedContext.html#a376eac6f57c30e55b9f9d7eb308232ba">chi::Result::ScopedContext::~ScopedContext</a></div><div class="ttdeci">~ScopedContext()</div><div class="ttdoc">Destructor–does the magic of remving itsself from the result. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00081">Result.hpp:81</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_aa078d3cb3dfb2fb63e81b71acea036e0"><div class="ttname"><a href="structchi_1_1Result.html#aa078d3cb3dfb2fb63e81b71acea036e0">chi::Result::contextJson</a></div><div class="ttdeci">nlohmann::json contextJson() const</div><div class="ttdoc">Get the JSON associated with the context that&amp;#39;s been added. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8cpp_source.html#l00095">Result.cpp:95</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_af020ebd48f50571295922b6235cf26bf"><div class="ttname"><a href="structchi_1_1Result.html#af020ebd48f50571295922b6235cf26bf">chi::Result::mSuccess</a></div><div class="ttdeci">bool mSuccess</div><div class="ttdoc">If it&amp;#39;s successful. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00155">Result.hpp:155</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_a22548cdff3037498a9cd978383458812"><div class="ttname"><a href="structchi_1_1Result.html#a22548cdff3037498a9cd978383458812">chi::Result::result_json</a></div><div class="ttdeci">nlohmann::json result_json</div><div class="ttdoc">The result JSON. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00152">Result.hpp:152</a></div></div>
<div class="ttc" id="structchi_1_1Result_1_1ScopedContext_html_ab5f480c619fad5ccaf21779c12136be7"><div class="ttname"><a href="structchi_1_1Result_1_1ScopedContext.html#ab5f480c619fad5ccaf21779c12136be7">chi::Result::ScopedContext::contextId</a></div><div class="ttdeci">const int contextId</div><div class="ttdoc">The ID for this context. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00087">Result.hpp:87</a></div></div>
<div class="ttc" id="structchi_1_1Result_1_1ScopedContext_html_a755e2e4acedc8c0be475c4678e3d4b52"><div class="ttname"><a href="structchi_1_1Result_1_1ScopedContext.html#a755e2e4acedc8c0be475c4678e3d4b52">chi::Result::ScopedContext::result</a></div><div class="ttdeci">Result &amp; result</div><div class="ttdoc">The result object. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00084">Result.hpp:84</a></div></div>
<div class="ttc" id="structchi_1_1Result_1_1ScopedContext_html_a15e5138daea652e91c8c91b0a80a9f60"><div class="ttname"><a href="structchi_1_1Result_1_1ScopedContext.html#a15e5138daea652e91c8c91b0a80a9f60">chi::Result::ScopedContext::ScopedContext</a></div><div class="ttdeci">ScopedContext(Result &amp;res, int ctxId)</div><div class="ttdoc">Create a scoped context object. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00078">Result.hpp:78</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_a5cd21feaa68ac0d813b3eec7d3ea34c6"><div class="ttname"><a href="structchi_1_1Result.html#a5cd21feaa68ac0d813b3eec7d3ea34c6">chi::Result::addScopedContext</a></div><div class="ttdeci">ScopedContext addScopedContext(const nlohmann::json &amp;data)</div><div class="ttdoc">Add a context with a scope Example usage: chi::Result res; res.contextJson(); // returns {} {     aut...</div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00123">Result.hpp:123</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_a8fb4cc68d78f0a0068c0ddd282875eee"><div class="ttname"><a href="structchi_1_1Result.html#a8fb4cc68d78f0a0068c0ddd282875eee">chi::Result::operator+</a></div><div class="ttdeci">Result operator+(const Result &amp;lhs, const Result &amp;rhs)</div><div class="ttdoc">Append two Result objects. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8cpp_source.html#l00106">Result.cpp:106</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_a5cbde12f0c21347635469c7acf8d4112"><div class="ttname"><a href="structchi_1_1Result.html#a5cbde12f0c21347635469c7acf8d4112">chi::Result::addContext</a></div><div class="ttdeci">int addContext(const nlohmann::json &amp;data)</div><div class="ttdoc">Add some json that will ALWAYS be merged with entries that are added and when results are added to th...</div><div class="ttdef"><b>Definition:</b> <a href="Result_8cpp_source.html#l00084">Result.cpp:84</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_a98065cddbdc75d3130b5d8c3d567f507"><div class="ttname"><a href="structchi_1_1Result.html#a98065cddbdc75d3130b5d8c3d567f507">chi::Result::success</a></div><div class="ttdeci">bool success() const</div><div class="ttdoc">Success test. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00141">Result.hpp:141</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_a3a1caa60d79ed3cd997da1559bddd278"><div class="ttname"><a href="structchi_1_1Result.html#a3a1caa60d79ed3cd997da1559bddd278">chi::Result::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;lhs, const Result &amp;rhs)</div><div class="ttdoc">Stream operator. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00187">Result.hpp:187</a></div></div>
<div class="ttc" id="structchi_1_1Result_1_1ScopedContext_html"><div class="ttname"><a href="structchi_1_1Result_1_1ScopedContext.html">chi::Result::ScopedContext</a></div><div class="ttdoc">A helper object for contexts that should be removed at the end of a scope. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00074">Result.hpp:74</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_aa3dbb473ec8607456c13be950e739827"><div class="ttname"><a href="structchi_1_1Result.html#aa3dbb473ec8607456c13be950e739827">chi::Result::operator+=</a></div><div class="ttdeci">Result &amp; operator+=(Result &amp;lhs, const Result &amp;rhs)</div><div class="ttdoc">Append one result to an existing one. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8cpp_source.html#l00127">Result.cpp:127</a></div></div>
<div class="ttc" id="namespacechi_html"><div class="ttname"><a href="namespacechi.html">chi</a></div><div class="ttdoc">The namespace where chigraph lives. </div><div class="ttdef"><b>Definition:</b> <a href="BitcodeParser_8hpp_source.html#l00012">BitcodeParser.hpp:12</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_ac4c9a2e6f79dbd1f49116370cfc96513"><div class="ttname"><a href="structchi_1_1Result.html#ac4c9a2e6f79dbd1f49116370cfc96513">chi::Result::operator!</a></div><div class="ttdeci">bool operator!() const</div><div class="ttdoc">!Success test </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00145">Result.hpp:145</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_aad77832631e03436010ecff5bb7ff597"><div class="ttname"><a href="structchi_1_1Result.html#aad77832631e03436010ecff5bb7ff597">chi::Result::Result</a></div><div class="ttdeci">Result()</div><div class="ttdoc">Default constructor; defaults to success. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00091">Result.hpp:91</a></div></div>
<div class="ttc" id="structchi_1_1Result_html"><div class="ttname"><a href="structchi_1_1Result.html">chi::Result</a></div><div class="ttdoc">The result object, used for identifiying errors with good diagnostics. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00072">Result.hpp:72</a></div></div>
<div class="ttc" id="structchi_1_1Result_html_ab801a9230e3e46dc771f260992e4e84d"><div class="ttname"><a href="structchi_1_1Result.html#ab801a9230e3e46dc771f260992e4e84d">chi::Result::removeContext</a></div><div class="ttdeci">void removeContext(int id)</div><div class="ttdoc">Removes a previously added context. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8cpp_source.html#l00093">Result.cpp:93</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="dir_2e3059805f6f515f917d8ef98610afb5.html">support</a></li><li class="navelem"><a class="el" href="dir_8f6158c6375c7a928f205956f43cc53b.html">include</a></li><li class="navelem"><a class="el" href="dir_15506f16d8a27e5f24c5f11d43b99347.html">chi</a></li><li class="navelem"><a class="el" href="dir_69eae05ff7476524364d958d7a05777f.html">Support</a></li><li class="navelem"><a class="el" href="Result_8hpp.html">Result.hpp</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
